Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.java.swing.ProgressMonitor
From time to time, when the Dialog box is visible, the progress bar will be updated when setProgress is called. setProgress won't always update the progress bar, it will only be done if the amount of progress is visibly significant.
Constructor Summary | |
ProgressMonitor(java.awt.Component parentComponent,
java.lang.Object message,
java.lang.String note,
int min,
int max)
|
Method Summary | |
void | close()
Indicate that the operation is complete. |
int | getMaximum()
|
int | getMillisToDecideToPopup()
|
int | getMillisToPopup()
|
int | getMinimum()
|
java.lang.String | getNote()
|
boolean | isCanceled()
Returns true if the user does some UI action to cancel this operation. (like hitting the Cancel button on the progress dialog). |
void | setMaximum(int m)
|
void | setMillisToDecideToPopup(int millisToDecideToPopup)
|
void | setMillisToPopup(int millisToPopup)
|
void | setMinimum(int m)
|
void | setNote(java.lang.String note)
|
void | setProgress(int nv)
Indicate the progress of the operation being monitored. |
Methods inherited from class java.lang.Object | |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Constructor Detail |
public ProgressMonitor(java.awt.Component parentComponent, java.lang.Object message, java.lang.String note, int min, int max)
parentComponent
- the parent component for the dialog box
message
- a descriptive message that will be shown
to the user to indicate what operation is being monitored.
This does not change as the operation progresses.
See the message parameters to methods in
JOptionsPane
for the range of values.
note
- a short note describing the state of the
operation. As the operation progresses, you can call
setNote to change the note displayed. This is used,
for example, in operations that iterate through a
list of files to show the name of the file being processes.
If note is initially null, there will be no note line
in the dialog box and setNote will be ineffective
min
- the lower bound of the range
max
- the upper bound of the rangeMethod Detail |
public void setProgress(int nv)
public void close()
public int getMinimum()
public void setMinimum(int m)
public int getMaximum()
public void setMaximum(int m)
public boolean isCanceled()
public void setMillisToDecideToPopup(int millisToDecideToPopup)
public int getMillisToDecideToPopup()
public void setMillisToPopup(int millisToPopup)
public int getMillisToPopup()
public void setNote(java.lang.String note)
public java.lang.String getNote()
Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |